using UnityEngine;

namespace Exploder.Demo
{
	public abstract class UseObject : MonoBehaviour
	{
		public float UseRadius = 5f;

		public string HelperText = string.Empty;

		public AudioClip UseClip;

		public virtual void Use()
		{
			AudioSource component = GetComponent<AudioSource>();
			if ((bool)component && (bool)UseClip)
			{
				component.PlayOneShot(UseClip);
			}
		}

		private void OnDrawGizmos()
		{
			Gizmos.color = Color.yellow;
			Gizmos.DrawWireSphere(base.transform.position, UseRadius);
		}
	}
}
